<%--
    Document   : User
    Created on : Oct 25, 2009, 10:09:20 PM
    Author     : Phong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.sql.*" %>
<jsp:useBean id="mem" class="DAO.Result" scope="request" />
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <link rel="stylesheet" href="css/style.css" />
        <link rel="stylesheet" href="css/front.css"  />
        <link rel="stylesheet" href="css/admin.css">

        <title>Themes</title>
    </head>


    <body bgcolor="#154978">

        <table width="1024" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
            <!--DWLayoutTable-->
            <tr>
                <td width="1024" height="157" valign="top" background="images/Banner.jpg">

                </td>
            </tr>
            <tr>
                <td height="463" valign="top">
                    <table width="100%" border="0" cellpadding="2" cellspacing="2">
                        <!--DWLayoutTable-->
                        <tr>
                            <td height="39" colspan="2" valign="top" background="images/button/bg_login.gif">
                            <%@include file="include/loginBar.jsp" %>	     </td>
                        </tr>
                        <tr>
                            <td width="179" height="537" valign="top">
                                <ul>
                                    <li><a href="InformationUser.jsp" style="">Thông tin tài khoản</a></li>
                                    <li><a href="Test.jsp">Kiểm Tra</a></li>
                                </ul></td>
                            <td width="831" align="center" valign="top" bgcolor="#CCCCCC">
                                <br>
                                <br>
                                <center style="color:red"><b>Thông tin bài Test</b></center>
                                <br>
                                <br>
                                <br>

                                <!-- display tests -->
                                <table border="1" class="sample">
                                    <thead>
                                        <tr>
                                            <th>ID</th>
                                            <th>User Name</th>
                                            <th>Start Time</th>
                                            <th>End Time</th>
                                            <th>Answer True</th>
                                            <th>Mark</th>
                                        </tr>
                                    </thead>
                                    <%
            String UserName = session.getAttribute("UserName").toString();
            ResultSet rsu = mem.selectResultUser(UserName);
            while (rsu.next()) {
                                    %>
                                    <tbody>
                                        <tr>
                                            <td><a href="OldTest.jsp?id=<%=rsu.getInt("ResultId")%>"><%=rsu.getInt("ResultID")%></a></td>
                                            <td><%=rsu.getString("UserName")%></td>

                                            <td><%=rsu.getString("StartTime")%></td>
                                            <td>
                                                <%=rsu.getString("EndTime")%>
                                            </td>
                                            <td>
                                                <%=rsu.getInt("AnswerTrue")%>
                                            </td>
                                            <td>
                                                <%=rsu.getFloat("Mark")%>
                                            </td>

                                        </tr>
                                    </tbody>
                                    <% }%>
                                </table>


                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>



    </body>
</html>
